{% extends "base.html" %}
{% block metadescription %}{{ category.name|striptags|truncatewords:10 }}{% endblock %}
{% block metakeywords %}{{ category.get_keywords }}{% endblock %}
{% block subtitle %}{{ category.name|striptags|truncatewords:10 }}{% endblock %}
{% block main %}
<section class="category">
<header class="category">
	<h2><a href="/category/list">Ver todas las categorías</a></h2>
	{% if category.parent %}
	<h3><label class="label">Categoría padre: </label>
	    <a href="/category/{{ category.parent.slug }}" title="{{ category.parent.description|striptags }}">{{ category.parent.name }}</a>
	</h3>
	{% endif %}
	<h1>{{ category.name }}</h1>
    {% with category.get_childs as categories %}  
    {% with "Categorías hijas" as desc %}
        {% include "categories/no_layout/nav.html" %}
    {% endwith %}  
    {% endwith %}  
    {% if category.img %}
		<img class="category" src="/{{ category.img }}" alt="category description">
	{% endif %}
</header>
<p>
    {{ category.description|safe }}
</p>
{% include "content/no_layout/list.html" %}

</section>
{% endblock %}